Карта сайта Интеллектуальная поисковая системаДобавить свою ссылку по ключевому запросуПоисковая система v3.kz поможет ускорить индексацию вашего сайта выводит в Топ |
|
#permalink. ip.substring(0, ip.indexOf( Например, str.substring(1, 0) == str.substring(0, 1). JavaScript String Reference. Example. Extract characters from a string: var str = "Hello world!"; var res = str.substring(1, 4) Реализована в JavaScript 1.0. ECMAScript 5.1 (ECMA-262) Определение String.prototype.substring в этой спецификации. Get the substring of a string * @param {integer} start where to start the substring * @param {integer} length how many Метод substr (String) (JavaScript). Youre confusing substring() and substr(): substring() expects two indices and not offset and length. Extracting a portion of a string is a fairly well understood practice. With JavaScript, there are three different built-in functions which can perform that operation. Because of this, often it is very confusing for beginners as to which function should be used. String.substr( start [, length ] ). In all cases, the second argument is optional. Extracting a substring: substr, substring, slice. Информация взята v3.kz |
загрузка...
|